package cn.crm.service;

import cn.crm.dao.UsersMapper;
import cn.crm.pojo.Users;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UsersServiceImpl implements UsersService {

    @Resource
    private UsersMapper usersMapper;

    @Override
    public Users login(Users users) {
        return usersMapper.login(users);
    }

    @Override
    public Integer register(Users users) {
        return usersMapper.register(users);
    }

}

